gtkplacesview: don't warn for cancelled operations
authorCarlos Soriano <csoriano@gnome.org>
Sat, 29 Aug 2015 21:32:23 +0000 (23:32 +0200)
committerCarlos Soriano <csoriano@gnome.org>
Sun, 30 Aug 2015 07:47:29 +0000 (09:47 +0200)
This was intended to filter out cancelled operations, not
the other way around.

https://bugzilla.gnome.org/show_bug.cgi?id=754150

gtk/gtkplacesview.c

index cda93c408b59c689c47bfb9166dbc39ba943db48..fcb35b8823d19809a40250aa14d277271d3d6bd7 100644 (file)
@@ -1002,7 +1002,7 @@ network_enumeration_finished (GObject      *source_object,
 
   if (error)
     {
-      if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+      if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
         g_warning ("Failed to fetch network locations: %s", error->message);
 
       g_clear_error (&error);